package com.example.demoserver.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demoserver.entity.InteApplog;
import com.example.demoserver.entity.InteGatewaylog;
import com.example.demoserver.service.InteGatewaylogService;
import com.example.demoserver.mapper.InteGatewaylogMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 18364
* @description 针对表【inte_gatewaylog】的数据库操作Service实现
* @createDate 2024-02-29 09:44:56
*/
@Service
public class InteGatewaylogServiceImpl extends ServiceImpl<InteGatewaylogMapper, InteGatewaylog>
    implements InteGatewaylogService{
    @Autowired
    InteGatewaylogMapper inteGatewaylogMapper;
    @Override
    public List<InteGatewaylog> selectAll() {
        QueryWrapper<InteGatewaylog> queryWrapper=new QueryWrapper<>();
        queryWrapper.orderByDesc("logTime");
        List<InteGatewaylog> list=inteGatewaylogMapper.selectList(queryWrapper);
        return list;
    }
}




